class Solution {
public:
    int percentageLetter(string s, char letter) {
        unordered_map<char, int> mp;
        for (auto ch : s) {
            ++mp[ch];
        }
        return mp[letter] * 100 / s.size();
    }
};
